
class test3
{
	public static void main(String[] args)
       	{
              int[] array = {12,214,222,444,512,555,625,888};
   	      System.out.println("sum of Array:"+addArray(array));
              System.out.println("sum of Array:"+addArray1(array));
              System.out.println("fibonacci sereis are:"	);
	      int[] res=genfib(10);
              for(int i=0;i<res.length;i++)
	      System.out.println(res[i]);
	      System.out.println("The Prime No Series are:"     );
	     isPrime(100,200);
 	}

	public static int addArray(int[] n)
     {
         int sum;
	 sum=n[0]+n[1]+n[2];
	 return sum;
	
	
     }

	public static int addArray1(int[] n)
    {
       int sum=0;
	for(int i=0;i<n.length;i++)
	  {
	     sum=sum+n[i];
          }
	 return sum;
	
    }

	public static int[] genfib(int n)
 	{
   		 int[] fib=new int[n];
    		 fib[0]=0;
   		 fib[1]=1;
   		 for(int i=2;i<n;i++)
   		 	fib[i]=fib[i-1]+fib[i-2];
	
     		 return fib;
       

	}

	
}
